package com.kgcx.opc.service.impl;

import com.kgcx.opc.common.utils.io.FtpsUtils;

/**
 * @author 何凯
 * @version 0.1
 * @description 通过异步线程上传图片
 * @time 2017/11/29 16:51
 * @since 0.1
 */
public class SendImgService implements Runnable{
    private String name;

    public SendImgService(String name) {
        this.name = name;
    }

    @Override
    public void run(){
        FtpsUtils.getInstance().uploadFileByRemote(name);
    }

    public static void main(String[] args) {
        System.out.println("12234");
        new Thread(new SendImgService("15r58PIChmX_1024.jpg")).start();
        System.out.println("222222");
    }
}
